#ifndef CAESARBREAK_H
#define CAESARBREAK_H

#include <QThread>

class CaesarBreak : public QThread
{
    Q_OBJECT
public:
    explicit CaesarBreak(QByteArray alphabet, QList<qreal> langFrequencies, QByteArray input, bool doXor = false, QObject *parent = 0);
    
protected:
    void run();

signals:
    void done(char key, QByteArray output);
    
public slots:
    
private:
    QByteArray alphabet;
    QList<qreal> langFrequencies;
    QByteArray input;
    bool doXor;
};

#endif // CAESARBREAK_H
